import request from "@/utils/request";

export function addVideoLearningRecords(trainingPlanId, documentVideoId,time) {
    return request({
        url: '/videoLearningRecords/addVideoLearningRecords?trainingPlanId='+trainingPlanId+'&documentVideoId='+documentVideoId+'&time='+time,
        method: 'post',
    })
}

export function deleteVideoLearningRecords(ids) {
    return request({
        url: '/videoLearningRecords/deleteVideoLearningRecords',
        method: 'delete',
        data:ids
    })
}




export function getVideoLearningRecords(trainingPlanId, documentVideoId) {
    return request({
        url: '/videoLearningRecords/getVideoLearningRecords?trainingPlanId='+trainingPlanId+'&documentVideoId='+documentVideoId,
        method: 'get',
    })
}
